package com.bckj.fastboot.flow.model;

import com.bckj.fastboot.flow.process.BpmnVisitor;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
public class BpmnCallActivity extends BpmnElement {

    private final String calledElement;
    @Setter
    private List<BpmnIOParam> inParams;
    @Setter
    private List<BpmnIOParam> outParams;

    public BpmnCallActivity(String id, String name, String type, String calledElement) {
        super(id, name, type);
        this.calledElement = calledElement;
    }

    @Override
    public void accept(BpmnVisitor visitor) {
        visitor.visit(this);
    }
}
